﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Prism.Core.Audio
{
    public class AudioFactory
    {
        public AudioFactory()
            : base()
        {
        }

        private List<AudioManager> audioManagers = new List<AudioManager>();
        public List<AudioManager> AudioManagers { get { return audioManagers; } }

        public void AddManager(AudioManager manager)
        {
            counter++;
            audioManagers.Add(manager);
            manager.Group = counter;
        }

        private int counter = -1;
        public int Counter { get { return counter; } }

        //public override void ExecuteAction()
        //{
        //    //base.ExecuteAction();
        //    Action action;
        //    if (this.Actions.TryDequeue(out action))
        //    {
        //        action();
        //    }
        //    else return;
        //}
    }
}
